<?php
// DB connection string and username/password
$connStr = 'mysql:host=localhost;dbname=sixty06_privr';
$user = 'sixty06_privr';
$pass = '!Twang123';

// Create the connection object
session_start();
$conn = new PDO($connStr, $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

//echo 'Connection established<br/>';

/**
* This function will display an error message, call the
* showFooter() function and terminate the application
* @param string $message the error message
*/
function showError($message)
{
	echo "<h2>Error</h2>";
	echo nl2br(htmlspecialchars($message));
	exit();
}

?>